package cv.gzd.robot.pojo.po;

import java.awt.*;
import java.io.Serializable;
import java.util.Date;

/**
 * @Author: Jun
 * @Date: 2018/8/21 16:15
 */
public class Message implements Serializable {
    /**
     * 发送者
     */
    private Integer msgfrom;
    /**
     *  发送的内容
     */
    private RobotState robotState;
    /**
     * 接收者
     */
    private Integer msgto;

    /**
     *  发送日期
     */
    private Date date;

    public Integer getMsgfrom() {
        return msgfrom;
    }

    public void setMsgfrom(Integer msgfrom) {
        this.msgfrom = msgfrom;
    }

    public RobotState getRobotState() {
        return robotState;
    }

    public void setRobotState(RobotState robotState) {
        this.robotState = robotState;
    }

    public Integer getMsgto() {
        return msgto;
    }

    public void setMsgto(Integer msgto) {
        this.msgto = msgto;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    @Override
    public String toString() {
        return "Message{" +
                "msgfrom=" + msgfrom +
                ", robotState=" + robotState +
                ", msgto=" + msgto +
                ", date=" + date +
                '}';
    }
}
